#include<stdio.h>
#include<stdio.h>
#define maxe 10000
char* my_change(char* arr1,int ret)
{
	char arr2[10000] = { 0 };
	int i = 0;
	int num = ret;
	for (i = 0; i < ret; i++)
	{
		arr2[num-1] = arr1[i];
		num--;
	}
	return arr2;
}
int main()
{
	char arr[maxe] = { 0 };
	gets(arr);
	int ret = strlen(arr);
	char*vv=my_change(arr,ret);
	puts(vv);
	return 0;
}